<?php
session_start();
require_once("include/common.inc.php");
require_once("include/lang/home.lang.php");
$_CACHEDIR     =  'cache';//
$_TEMPLATESDIR =  'templates';//模板目录
$GLOBALS['lang'] = $lang;//前台语言全局数组
$act = isset($_GET['act'])?trim($_GET['act']) : '';
$todo   = isset($_GET['todo'])?trim($_GET['todo']) : '';
$do   = isset($_GET['todo'])?trim($_GET['do']) : '';
$id     = isset($_GET['id'])?intval($_GET['id']) : '';
$formhash=formhash();
GetNav('');
switch($act)
{


    case '':

          require_once('index/index.inc.php');
           break;
     case 'logout':
	     session_destroy();
		 s('public_logout','index.php');
	 break;		   
     default:

	   $filename='index/'.$act.'.inc.php';

	   if(file_exists($filename))
	   {
	   		include $filename;
	   }else
	   {
	   		stop('public_unknowaction');
	   }

       break;



}



$quernum  = $db->query_num;

$db->close();

unset($db);

$end_time = array_sum(explode(' ',microtime()));// 程序运行信息

$runtime  = number_format( $end_time - $start_time, 10);

echo "\n<!--  $quernum times query, processed in $runtime second(s)  -->";

ob_flush();

?>